package cn.ylz.ylmall.content.dao.persist.mapper;

import cn.ylz.ylmall.account.security.CurrentPrincipal;
import cn.ylz.ylmall.content.pojo.entity.Collect;
import cn.ylz.ylmall.content.pojo.vo.CollectStandardVO;
import cn.ylz.ylmall.content.pojo.vo.CountVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

@Repository
public interface CollectMapper extends BaseMapper<Collect> {

    int deleteCollect(Long userId, Long contentId);

    CountVO countCollect(Long contentId);


    CollectStandardVO selectIsCollect(Long userId, Long contentId);
}
